<form action="/admin/suakm" method="GET" id="formthem" name="formthem">

{foreach $rows as $row}
<div><h2>Sua chuong trinh khuyen mai</h2>
    <!-- ID -->
    <input type="hidden" name="id" value="{$id}">

    <label for="km">Ten chuong trinh km</label>
    <input type="text" id="km" name="km" value="{$row.km_ten}"> <br>
    <label for="ngaybd">Ngay bat dau</label>
    <input type="text" name="ngaybd" id="ngaybd" value="{$row.km_ngaybd}">
    <label for="ngaykt">Ngay bat dau</label>
    <input type="text" name="ngaykt" id="ngaykt" value="{$row.km_ngaykt}"><br>

    <button class="sb-button" id="themkm" type="submit" onclick="sua()">Sua khuyen mai</button>
{/foreach}
</div>
</form>
{js scripts/thongbao.js}